8ad924f93a682ecfe051b09fd15bf82f507d1a66,fluentlenium-core/src/test/java/org/fluentlenium/core/proxy/ProxyHookTest.java,ProxyHookTest,testHooksOnElementList,#,87

Before Change


        LocatorProxies.setHooks(proxy, hookChainBuilder, hooks);

        hookLocator = LocatorProxies.getLocatorHandler(proxy).getHookLocator();
        hookElement = LocatorProxies.getLocatorHandler(proxy).getHookElement();

        Assertions.assertThat(hookLocator).isExactlyInstanceOf(TestHook.class);
        Assertions.assertThat(hookElement).isNull();

After Change


        LocatorProxies.now(proxy);

        hookLocator = LocatorProxies.getLocatorHandler(proxy).getHookLocator();
        hookElements = (List<WebElement>) LocatorProxies.getLocatorHandler(proxy).getInvocationTarget(null);

        Assertions.assertThat(hookLocator).isExactlyInstanceOf(TestHook.class);
        Assertions.assertThat(LocatorProxies.getLocatorHandler(hookElements.get(0)).getInvocationTarget(null))